package com.lu.integrate.message.center.feign.fallback;

import com.lu.integrate.message.center.model.request.MessageCenterQueueMessageConfirmSubmitRequest;
import com.lu.integrate.message.center.model.request.MessageCenterQueueProduceRequest;
import com.lu.stack.common.model.response.R;
import com.lu.integrate.message.center.feign.FeignToMessageCenter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description
 * @date 2023/2/13 18:11
 */
@Slf4j
@Component
public class FeignToMessageCenterFallback implements FeignToMessageCenter {

    @Override
    public R queueProducer(MessageCenterQueueProduceRequest queueHandler) {
        log.error("服务降级：t2");
        return R.failed("服务降级");
    }

    @Override
    public R confirmSubmit(MessageCenterQueueMessageConfirmSubmitRequest request) {
        log.error("服务降级：t2");
        return R.failed("服务降级");
    }

}
